package model;

public class AuthorImpl implements Author {

	private String username;
	
	@Override
	public String getUsername() {
		return username;
	}

	@Override
	public void setUsername(String username) {
		this.username = username;
	}

	@Override
	public int compareTo(Author o) {
		if (this.username == null) return -1;
		if (o.getUsername() == null) return 1;
		return this.username.compareTo(o.getUsername());
	}
	
	

}
